package munci.jkit;

import jkit.core.Clazz;
import jkit.stages.Stage;
import jkit.stages.codegen.AnonClass;
import jkit.stages.codegen.FieldInitialisation;
import jkit.stages.codegen.Typing;

public class JKitCompiler {
	
	private static final Stage[] STAGES = {
		new FieldInitialisation(),
		new AnonClass(),
		new Typing(),
	};

	public static void compile(Clazz clazz) {
		for (Stage stage : STAGES) {
			stage.apply(clazz);
		}
	}
}
